import request from '@/utils/request'

// 导出网店管家订单
export function exportWdgjOrder(query) {
  return request({
    url: '/admin/order/wdgjBatchDown',
    method: 'get',
    params: query
  })
}

// 下载导入模板
export function wdgjOrderTmplate() {
  return request({
    url: '/admin/order/wdgjOrderTmplate',
    method: 'get'
  })
}

// 查询订单表头列表
export function listOrderHeader(channelId) {
  return request({
    url: '/admin/order/header/'+channelId,
    method: 'get'
  })
}

// 修改表头
export function editOrderHeader(data) {
  return request({
    url: '/admin/order/header/update',
    method: 'put',
    data: data
  })
}

// 删除表头
export function delOrderHeader(configId) {
  return request({
    url: '/admin/order/header/remove/' + configId,
    method: 'delete'
  })
}
